﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ideas2Realize.Data.Business.Interface
{
    public interface IDeviationRepository : IRepository<Models.Deviation>
    {
        Models.Deviation GetById(int id);
        IEnumerable<Models.Deviation> GetAll();
        IEnumerable<Models.DeviationsView> GetByUserId(int userId);
        PetaPoco.Page<Models.Deviation> GetPaged(int limit, int page);
        PetaPoco.Page<Models.DeviationsView> GetPagedView(int limit, int page, DeviationTypeEnum deviationType, int? userId);
        void BindUser(int[] users ,int id);
    }

    public enum DeviationTypeEnum : int
    {
        None = 0,
        Draft = 1,
        Unhandled = 2,
        Postponed = 3,
        Pending = 4
    }
}
